﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace A1
{
    class Wall
    {
        private Rectangle rec; //The bounding rectangle
        private Texture2D sprite; //The sprite of the wall
        private int GameHeight; //The game height
        private int GameWidth; // The game width
        private Ball ball; // The ball

        public Wall(Texture2D s, int gh, int gw, Ball b, int positionX, int positionY)
        {
            rec = new Rectangle(positionX, positionY, 50, 50); GameHeight = gh; GameWidth = gw; ball = b;
            sprite = s;
        }

        public void Update()
        {

        }

        public void Draw(SpriteBatch spriteBatch)
        {
            spriteBatch.Draw(sprite, rec, Color.White);
        }
    }
}
